package ihm;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.SwingConstants;
import javax.swing.JList;
import javax.swing.JScrollBar;
import javax.swing.border.MatteBorder;
import java.awt.Color;
import javax.swing.AbstractListModel;

public class FenetreGestionProjet extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					FenetreGestionProjet frame = new FenetreGestionProjet();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public FenetreGestionProjet() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 594, 393);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		JPanel panel = new JPanel();
		contentPane.add(panel, BorderLayout.CENTER);
		panel.setLayout(null);
		
		JLabel lblGestionDeProjet = new JLabel("Gestion de Projets");
		lblGestionDeProjet.setBounds(154, 34, 241, 22);
		lblGestionDeProjet.setHorizontalAlignment(SwingConstants.CENTER);
		lblGestionDeProjet.setFont(new Font("Times New Roman", Font.BOLD | Font.ITALIC, 18));
		panel.add(lblGestionDeProjet);
		
		JList list = new JList();
		list.setToolTipText("e\u00E9yhgdyhezcxe\r\npiecjezice\"\r\niehci\"c\r\n");
		list.setModel(new AbstractListModel() {
			String[] values = new String[] {"test", "cuc", "\"ecikje\"cn"};
			public int getSize() {
				return values.length;
			}
			public Object getElementAt(int index) {
				return values[index];
			}
		});
		list.setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 0, 0)));
		list.setBounds(202, 236, 91, -96);
		panel.add(list);
	}
}
